home *** CD-ROM | disk | FTP | other *** search
- #
- # Copyright (C) 1991 The Santa Cruz Operation Inc. All Rights Reserved
- # This Module contains Proprietary Information of
- # The Santa Cruz Operation Inc, and should be treated as Confidential.
- #
- SAMPLES OF STANDARD PRODUCTIZATION AND THEORETICAL EXAMPLES
-
- These samples cover some of the most basic productization functionality
- required by products. The following includes descriptions of CM's
- standard productization solutions. These samples are products that
- can be created by using SMT ( the software mastering toolkit )
-
- Making samples up to and including sample9
- cd <to the appropriate sample? directory>
- docut <read and enter info as instructed by prompts>
- THE END YOU ARE DONE
-
- Making samples at and above sample10
- These samples demonstrate the standard build structure conventions.
- cd <to the appropriate sample?? directory>
- ./mksource
- docut <read and enter info as instructed by prompts>
- THE END YOU ARE DONE
-
- sample1 Simple Products
- Demonstrates the use of prep, init and rmv scripts.
-
- sample2 Distribution Files I Do Not Want to Extract or Associate With
- At prep script time I find that I have files in my products
- distribution that I do not want to be associated with the
- installed product. I do not want these files extracted or
- to be associated with my product at or after install time.
- Example: My permslist has files for the xenix link-kit.
- At prep script time I notice that the system I'm
- installing on is unix, not xenix. I would need to
- take action on the xenix link-kit files.
-
- sample3 Products with Man Pages
- Product has man pages that need to be placed and configured.
-
- sample4 Check Pre-Install Conditions
- Product needs to check for dependencies, environment states
- to see if it is ok to install.
-
- sample5 Files I Need to Backup
- Generally you should never overwrite any existing files on a
- system without making arrangements for the possible restoration
- of those files. The most critical files are operating system files
- used for runtime execution and configuration. Any other file
- may be a dependency for some other program that you may destroy
- by overwriting.
-
- sample6 Distribution Files I Do Not Want to Extract
- There are files on my distribution but for whatever
- reason I do not want this extracted. I must prohibit
- custom from including them in its extraction list.
- I want the product to associate with these files after
- installation.
-
- sample10 UNIX device driver installation
- Install a unix driver and return the system to
- its previous state when the product is removed
-
- sample11 Installing compressed on a non-compress system
- This sample demonstrates how to cope with installing a compressed
- product (96dshd_c or 135dshd_c media types) on a system which does
- not have a tar program which can handle the automatic uncompression
- of files from a SCO compressed tar distribution. The function fixtar
- is used in the prep script to replace the existing tar program
- with a newer version of tar if necessary (fixtar tests first, and
- does not replace the existing tar if it can handle compression).
- The old tar is backed-up under /usr/lib/custom/$PRDVALUE/backup.
- The rmv script uses restorefiles to restore the old tar, along with
- any other files backed-up, when the product is removed.
-
-
- CONFIG Products that Execute System Configuration
- NOT IMPLEMENTED AT THIS TIME
- Any action that modifies the systems state. Some examples:
- Adjust Kernel Parameters Relink Kernel
- Remove/Add/Modify Drivers
- Change System Name Rebuild mmdf database
- Create/Remove product account Add/Remove devices
- Adding/Remove rc scripts Modifying sys/config files
- Adding/Remove drivers Reserialize files
- Create/Remove product passwd Add/Remove icons to desktop
- Add/Remove printers Remove mail configuration entries
- Modify trusted database
- The preferred method for system configuration is through the
- use of existing system configuration utilities.
- System configuration should modify files as opposed to
- replacing them. This area poses problem in that there are no
- approved utilities for much of the system configuration that
- products need to do.
-
- PLATFRM Different Distribution Sets for Different Platforms
- You have two sets of files, say one for MC and another
- for GT. They both have the same paths but only one will
- be installed since the system must be MC or GT.
- You must have both sets in separate directories under
- tmp. The combination of the sets should have stubs in the
- root file system.
-
-